<template>
  <div>
    <h3>我是right组件</h3>
    {{uname}}
  </div>
</template>

<script>
import bus from '@/bus'
export default {
  data() {
    return {
        uname:''
    }
  },
  created(){
    bus.$('share',(val)=>{
        this.uname =val
    })
  }
}
</script>

<style>

</style>